﻿using Entity;
using Microsoft.AspNetCore.Http.Extensions;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using ProdService;
using ViewModels.JsonResult;
using ViewModels.LogOn;
using static Global.Const;

namespace UI.Controllers
{
    public class LogOnController : BaseController
    {
        public LogOnController()
        {
        }

        public IActionResult _Logon()
        {
            return PartialView();
        }

        public IActionResult _BySMS()
        {
            return PartialView();
        }

        public IActionResult _SMS()
        {
            return PartialView();
        }

        public IActionResult _Pwd()
        {
            return PartialView();
        }


        public IActionResult Off()
        {
            Response.Cookies.Delete(CookieName.UserId);
            Response.Cookies.Delete(CookieName.Password);

            return Redirect(Request.Headers.Referer[0]);
        }

    }
}
